package com.rc.saas.mini.model.market;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rc.saas.mini.common.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description
 * @Author
 * @Date: 2022-05-16
 */

@ApiModel(value = " market_activity_ticket ", description = " 营销活动和优惠券关联表 ")
public class MarketActivityTicket extends BaseModel {

    @ApiModelProperty(value = "ID")
    private Long activityTicketId;
 
    @ApiModelProperty(value = "运营商")
    private String tenantCode;
 
    @ApiModelProperty(value = "营销活动ID,关联market_activity表")
    private Long marketActivityId;
 
    @ApiModelProperty(value = "优惠券ID,关联tenant_ticket_type表")
    private Long ticketTypeId;
 
    @ApiModelProperty(value = "赠送条件满足金额")
    private BigDecimal requireAmount;
 
    @ApiModelProperty(value = "赠送数量(优惠券)")
    private Integer sendCount;
 
    @ApiModelProperty(value = "赠送金额")
    private BigDecimal sendAmount;
 
    @ApiModelProperty(value = "创建人")
    private String createdBy;
 
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
 
    @ApiModelProperty(value = "null")
    private String lastUpdatedBy;
 
    @ApiModelProperty(value = "null")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdatedTime;
 
    public Long getActivityTicketId() {
        return activityTicketId;
    }

    public void setActivityTicketId(Long activityTicketId) {
        this.activityTicketId = activityTicketId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public Long getMarketActivityId() {
        return marketActivityId;
    }

    public void setMarketActivityId(Long marketActivityId) {
        this.marketActivityId = marketActivityId;
    }

    public Long getTicketTypeId() {
        return ticketTypeId;
    }

    public void setTicketTypeId(Long ticketTypeId) {
        this.ticketTypeId = ticketTypeId;
    }

    public BigDecimal getRequireAmount() {
        return requireAmount;
    }

    public void setRequireAmount(BigDecimal requireAmount) {
        this.requireAmount = requireAmount;
    }

    public Integer getSendCount() {
        return sendCount;
    }

    public void setSendCount(Integer sendCount) {
        this.sendCount = sendCount;
    }

    public BigDecimal getSendAmount() {
        return sendAmount;
    }

    public void setSendAmount(BigDecimal sendAmount) {
        this.sendAmount = sendAmount;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Date lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }

}
